<div data-ng-controller="contractReceivableCtrl">
    <div class="mt20 clearfix ng-scope ml25">
    <span class="fl lh30 f14">发票信息</span>

    <div class="fr btn-group" style="width: 100px;">
		    <!--<button href="javascript:;" class="btn"-->
		            <!--ui-dialog="导出excel"-->
		            <!--ui-dialog-data="{}"-->
		            <!--ui-dialog-show="receivableInvoiceService.onInvoiceEditShow(contractBaseInfo.contract_id,$dialog,$dialogScope, 4)"-->
		            <!--ui-dialog-ok="receivableInvoiceService.editInvoiceSave($data,$dialog,$dialogScope,reloadInvoices)"-->
		            <!--ui-dialog-cache="false"-->
		            <!--ui-dialog-url="/contract/editinc/receivable-inc-edit-invoice.html"-->
		    <!--&gt;导出excel-->
		    <!--</button>-->
        <a href="javascript:;" class="btn" ng-click="exportCaibaoInvoce()">导出excel</a>
    </div>
</div>
<div id="grid" class="table-wrap mt10 ml25" style="min-height: 200px;">
    <table width="100%" class="valign-t">
        <thead>
        <tr>
            <th width="40">序号</th>
            <th width="150">订单号</th>
            <th width="150">发票代码</th>
            <th width="150">发票编号</th>
            <th width="100">开票金额</th>
            <th width="150">开票单位</th>
            <th width="150">客户名称</th>
            <th width="100">开票时间</th>
            <th width="150">发票类别</th>
            <th width="150">发票类型</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="record in receivableInfo.invoices" ng-if="record.__isdelete != 1">
            <td height="40"><p ng-bind="$index + 1"></p></td>
            <td class="lh14">
                <p class="c-gray">{{record.order_code}}</p>
            </td>
            <td>
                <p ng-bind="record.invoice_code"></p>
            </td>
            <td>
                <p ng-bind="record.invoice_no"></p>
            </td>
            <td>
                <p ng-bind="record.invoice_amount|number:2"></p>
            </td>
            <td>
                <p>{{record.BUName}}</p>
            </td>
            <td>
                <p ng-bind="record.UserName"></p>
            </td>
            <td>
                <p class="c-gray">{{record.invoice_date | strdate:'yyyy-MM-dd'}}</p>
            </td>
            <td>
                <p>{{record.invoice_category==1?'服务票':'销售票'}}</p>
            </td>
            <td>
                <p>{{record.invoice_type==1?'增值税专用发票':'增值税普通发票'}}</p>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="no-data" ng-if="invoices.length == 0" style="height:180px"><span>暂无数据</span></div>
</div>
</div>
